package com.github.tomakehurst.wiremock.db.entity;

import lombok.Data;
import java.util.Date;

@Data
public class WireMockJournal {
    private String id;
    private String requestId;
    private String scheme;
    private String host;
    private Integer port;
    private String url;
    private String absoluteUrl;
    private String method;
    private String clientIp;
    private String protocol;
    private Boolean isBrowserProxyRequest;
    private Date loggedDate;
    private Boolean wasMatched;
    private Integer responseStatus;
    private String stubMappingId;
    private Date created_at;

    // 关联详情表实体
    private WireMockJournalDetails details;
    /** 请求处理时间（毫秒，对应 Timing.processTime） */
    private Integer timingProcessTime;
    /** 响应发送时间（毫秒，对应 Timing.responseSendTime） */
    private Integer timingResponseSendTime;
    /** 额外延迟时间（毫秒，对应 Timing.addedTime） */
    private Integer timingAddedTime;
}